import axios from 'axios';

axios.defaults.baseURL = 'http://62.234.170.89:3000/server';
// axios.defaults.baseURL = 'http://localhost:3002/server';



export function login (username, password) {
  const option = {
    url: 'auth',
    method: 'post',
    data: {
      username,
      password
    },
  };
  return axios(option).then(({data})=>data);
}
